package com.huawei.appgallery.agwebview.whitelist;

import android.text.TextUtils;
import com.huawei.appgallery.jsonkit.api.JsonBean;
import com.huawei.appgallery.jsonkit.api.annotation.FieldSecurity;
import com.huawei.appgallery.jsonkit.api.annotation.SecurityLevel;
import o.azh;
import o.dof;

public class WapDomainInfo extends JsonBean implements Comparable<WapDomainInfo> {
    private static final int ATTRIBUTE_NUM = 3;
    private static final int OFFSET_IV = 1;
    private static final int OFFSET_NAME = 0;
    private static final int OFFSET_STR = 0;
    private static final int OFFSET_TYPE = 2;
    private static final int OFFSET_URL = 1;
    private static final String TAG = "WapDomainInfo";
    @FieldSecurity(security = SecurityLevel.PRIVACY)
    private String domainName_;
    @FieldSecurity(security = SecurityLevel.PRIVACY)
    private String domainUrl_;
    private String domainUseType_;

    public /* synthetic */ int compareTo(Object obj) {
        return ˎ((WapDomainInfo) obj);
    }

    public String toString() {
        String str;
        try {
            return toJson();
        } catch (IllegalAccessException e) {
            str = "";
            azh.ˏ.ˊ(TAG, "toString, IllegalAccessException.");
            return str;
        } catch (IllegalArgumentException e2) {
            str = "";
            azh.ˏ.ˊ(TAG, "toString, IllegalArgumentException.");
            return str;
        }
    }

    public int hashCode() {
        return super.hashCode();
    }

    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (this == obj) {
            return true;
        }
        if ((obj instanceof WapDomainInfo) && dof.ˎ(this.domainUrl_, ((WapDomainInfo) obj).domainUrl_)) {
            return true;
        }
        return false;
    }

    public int ˎ(WapDomainInfo wapDomainInfo) {
        if (equals(wapDomainInfo)) {
            return 0;
        }
        if (wapDomainInfo == null || TextUtils.isEmpty(wapDomainInfo.domainUrl_) || (this.domainUrl_ != null && this.domainUrl_.length() > wapDomainInfo.domainUrl_.length())) {
            return -1;
        }
        return 1;
    }

    public String ॱ() {
        return this.domainName_;
    }

    public void ˏ(String str) {
        this.domainName_ = str;
    }

    public String ˊ() {
        return this.domainUrl_;
    }

    public void ˊ(String str) {
        this.domainUrl_ = str;
    }

    public String ˏ() {
        return this.domainUseType_;
    }

    public void ˎ(String str) {
        this.domainUseType_ = str;
    }
}
